@extends('admin.layout')
@section('title',$title)
@section('content')
	<div class="content-wrapper">
        <!-- Content Header (Page header) -->
        <section class="content-header">
            <h1>
                轮播图管理页面
                <small>这是轮播图管理更新页面</small>
            </h1>
            <ol class="breadcrumb">
                <li><a href="#"><i class="fa fa-dashboard"></i> 轮播图管理页面</a></li>
                <li class="active">轮播图管理页面</li>
            </ol>
        </section>
        @if(session('error'))
            <div class="alert alert-danger">
                <ul>
                    <li>{{session('error')}}</li>  
                </ul>
            </div>
        @elseif(session('success'))
            <div class="alert alert-danger">
                <ul>
                    <li>{{session('success')}}</li>
                </ul>
                
            </div>
        @endif
        <form role="form" action="/admin/lunbo/update" method="post" enctype="multipart/form-data">
            {{ csrf_field() }}
            <input type="hidden" value="{{$data -> id}}" name="id">
            <input type="hidden" value="{{$data -> pica}}" name="oldpica">
            <input type="hidden" value="{{$data -> picb}}" name="oldpicb">
            <input type="hidden" value="{{$data -> picc}}" name="oldpicc">
            <input type="hidden" value="{{$data -> picd}}" name="oldpicd">
            <input type="hidden" value="{{$data -> pice}}" name="oldpice">
            <!-- Main content -->
            <section class="content">
            <!-- Small boxes (Stat box) -->
            <div class="row">
                <div class="col-lg-2 col-xs-6">
                    <!-- small box -->
                    <div class="form-group">
                        <label for="exampleInputPassword1">第一张图片</label>
                        <img src="{{$data -> pica}}" width="100%">
                    </div>
                    <div class="form-group">
                        <input type="file" name="pica" id="exampleInputFile">
                        <p class="help-block">请输入要更新的第一张图片</p>
                    </div>
                </div><!-- ./col -->
                <div class="col-lg-2 col-xs-6">
                    <!-- small box -->
                    <div class="form-group">
                        <label for="exampleInputPassword1">第二张图片</label>
                        <img src="{{$data -> picb}}" width="100%">
                    </div>
                    <div class="form-group">
                        <input type="file" name="picb" id="exampleInputFile">
                        <p class="help-block">请输入要更新的第二张图片</p>
                    </div>
                </div><!-- ./col -->
                <div class="col-lg-2 col-xs-6">
                    <!-- small box -->
                    <div class="form-group">
                        <label for="exampleInputPassword1">第三张图片</label>
                        <img src="{{$data -> picc}}" width="100%">
                    </div>
                    <div class="form-group">
                        <input type="file" name="picc" id="exampleInputFile">
                        <p class="help-block">请输入要更新的第三张图片</p>
                    </div>
                </div><!-- ./col -->
                <div class="col-lg-2 col-xs-6">
                    <!-- small box -->
                    <div class="form-group">
                        <label for="exampleInputPassword1">第四张图片</label>
                        <img src="{{$data -> picd}}" width="100%">
                    </div>
                    <div class="form-group">
                        <input type="file" name="picd" id="exampleInputFile">
                        <p class="help-block">请输入要更新的第四张图片</p>
                    </div>
                </div><!-- ./col -->
                <div class="col-lg-2 col-xs-6">
                    <!-- small box -->
                    <div class="form-group">
                        <label for="exampleInputPassword1">第五张图片</label>
                        <img src="{{$data -> pice}}" width="100%">
                    </div>
                    <div class="form-group">
                        <input type="file" name="pice" id="exampleInputFile">
                        <p class="help-block">请输入要更新的第五张图片</p>
                    </div>
                </div><!-- ./col -->
            </div><!-- /.row -->
            <div class="box-footer">
                <button type="submit" class="btn btn-primary">保存</button>
                <!-- <button typ="reset" class="btn btn-danger">重置</button> -->
            </div>
        </form>
        </section><!-- /.content -->
    </div><!-- /.content-wrapper -->
@endsection
